package com.ssm.service;
import com.ssm.pojo.Record;
import com.ssm.pojo.Yong;
import com.ssm.pojo.Page;
import com.ssm.pojo.Book;
import org.springframework.stereotype.Repository;

import java.util.List;
@Repository
public interface BookService {

    //查询所有书籍
    Page getAllBooks(Book book);
    //借阅书籍
    Book getBook(long id);
    //确认借阅书籍
    void insertRecord(Record record);
    //查询借阅的书籍
    List<Record> getRecord(long yongid);
    //查询需要归还的书籍
    List<Record> getBacks(long id);
    //申请归还
    void updateBacks(long id);
    //查询是否存在用户
    Yong selectYong(Yong yong);

}
